package com.itbbs.db.dataSource;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 导入数据源配置
 *
 * @author y
 * @date 2021-06-01-17:29
 */
@Data
@Component
@PropertySource("classpath:application-db.properties")
public class DBProperties {

    @Value("${druid.driverClassName}")
    private String driverClassName;

    @Value("${druid.username}")
    private String userName;

    @Value("${druid.password}")
    private String password;

    @Value("${druid.master.url}")
    private String masterUrl;

    @Value("${druid.slave.url}")
    private String slaveUrl;
}
